@import "../../styles/colors";
.cm-cascader{
    width: 100%;
    position: relative;
    &.cm-cascader-open{
        .cm-cascader-options-wrap{
            display: block;
            animation: fadeInUp 0.2s;
            animation-fill-mode: both;
        }
        .cm-select-cert{
            -webkit-transform: translateY(-50%) rotate(180deg);
            transform: translateY(-50%) rotate(180deg);
        }
    }
    .cm-select-value:focus{
        border-color: @color-blue;
    }
    &:hover{
        .cm-select-value{
            border-color: @color-blue;
        }
    }
}

.cm-cascader-clearable:hover{
    .cm-select-clear{
      display: inline-block;
    }
    .cm-select-cert{
      display: none;
    }
  }

.cm-cascader-options-wrap{
    position: absolute;
    top: 32px;
    margin: 5px 0;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 1px 6px rgba(0,0,0,.2);
    background: @color-white;
    overflow: visible;
    transform-origin: top center;
    display: none;
}

@keyframes fadeInUp {
    from {
      opacity: 0;
      -webkit-transform: scaleY(0);
      transform: scaleY(0);
    }
  
    to {
      opacity: 1;
      -webkit-transform: scaleY(1);
      transform: scaleY(1);
    }
  }

.cm-cascader-menu{
    list-style: none;
    min-width: 100px;
    display: inline-block;
    vertical-align: top;
    overflow: auto;
    height: 180px;
    padding: 5px 0;
    border-right: 1px solid #e8eaec;
}
.cm-cascader-item{
    position: relative;
    list-style: none;
    padding: 7px 16px;
    clear: both;
    color: @color-ctx;
    font-size: 14px!important;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
    transition: background .2s ease-in-out;
    .cm-button-loading,
    .ion{
        position: absolute;
        right: 10px;
        top: 50%;
        width: 12px;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        font-size: 12px;
    }
    &.cm-cascader-item-active{
        color: @color-blue;
        background-color: #f3f3f3;
    }
}

.cm-cascader-disabled{
    .cm-select-value{
      background-color: #f3f3f3;
      opacity: 1;
      cursor: not-allowed;
      color: #ccc;
    }
    .cm-select-cert {
      color: @color-border;
    }
  }
.cm-cascader.cm-cascader-disabled .cm-select-value:focus,
.cm-cascader.cm-cascader-disabled:hover .cm-select-value{
      border-color: @color-border;
      box-shadow: none;
}

.cm-cascader-small {
    .cm-select-value{
      height: 24px;
    }
    .cm-select-text{
      height: 22px;
      line-height: 22px;
      font-size: 12px;
    }
    .cm-cascader-options-wrap{
      top: 24px;
    }
  }
  
  .cm-cascader-large {
    .cm-select-value{
      height: 40px;
    }
    .cm-select-text{
      height: 38px;
      line-height: 38px;
    }
    .cm-cascader-options-wrap{
      top: 40px;
    }
  }